package com.example.nio.netty.protoco.request;

import com.example.nio.netty.protoco.Command;
import com.example.nio.netty.protoco.Packet;

public class LoginRequest extends Packet {
    private String userName;
    private String passWord;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    @Override
    public String toString() {
        return "LoginRequest{" +
            "userName='" + userName + '\'' +
            ", passWord='" + passWord + '\'' +
            '}';
    }

    @Override
    public Byte getCommand() {
        return Command.LOGIN_REQUEST;
    }
}
